package org.onion.pattern.sample.active.controller;

import org.onion.pattern.sample.active.service.ActiveService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class ActiveController  {

    @Autowired
    private ActiveService activeService;


    @GetMapping("act/create")
    public String create() {
        return activeService.create();
    }

    @GetMapping("act/flush")
    public String flush() {
        return activeService.flush();
    }


    @GetMapping("act/create2")
    public String create2() {
        return activeService.create2();
    }

    @GetMapping("act/update")
    public String update() {
        return activeService.update();
    }

    @GetMapping("act/del")
    public String delete() {
        return activeService.delete();
    }

    @GetMapping("act/createFail")
    public String createFail() {
        return activeService.createFail();
    }

    @GetMapping("act/MRocketMQMessaage")
    public String MRocketMQMessaage() {
        return activeService.MRocketMQMessaage();
    }

    @GetMapping("act/MRocketMQMessaageSub")
    public String MRocketMQMessaageSub() {
        return activeService.MRocketMQMessaageSub();
    }


}
